package com.ezgo.erc.test;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ezgo.erc.service.SysuserServiceImpl;

public class JunitTestCase {

	private ClassPathXmlApplicationContext context;

	@Before
	public void before() {
		context = new ClassPathXmlApplicationContext("config/applicationContext_core.xml");
	}

	@Test
	public void testgetBycode() throws Exception {
		SysuserServiceImpl sysdictServiceImpl = (SysuserServiceImpl) context.getBean("sysuserServiceImpl");
		sysdictServiceImpl.saveSysuser(null);

	}
}
